﻿<agc:PopupUserControl x:Class="AgFractal.Controls.ParameterUC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:agc="clr-namespace:AgFractal.Controls"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    >
    <Grid Background="White" >
        <Grid Margin="2" Background="#FF111111">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="25" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="40
				" />
            </Grid.RowDefinitions>

            <TextBlock Text="Parameter" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,0,-2" VerticalAlignment="Center" Foreground="#FFAAAAAA"/>
            <TextBlock Text="Name" Grid.Column="0" Grid.Row="1" Margin="8,0,0,0" Foreground="#FFAAAAAA"/>
            <TextBlock Text="{Binding Name}" Grid.Column="1" Grid.Row="1" Foreground="White" Margin="9,0" />

            <TextBlock Text="Real" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" Margin="8,0,0,0" Foreground="#FFAAAAAA"/>
            <TextBox Text="{Binding R, Mode=TwoWay}" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" Margin="8,0" Width="100" Style="{StaticResource GlossyBlackTextBox}"/>

            <TextBlock Text="Imaginary" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" Margin="8,0,0,0" Foreground="#FFAAAAAA"/>
            <TextBox Text="{Binding I, Mode=TwoWay}" Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" Margin="8,0,8,0" Width="100" Style="{StaticResource GlossyBlackTextBox}"/>

            <Button Content="Close" Click="Button_Click" VerticalAlignment="Center" Style="{StaticResource BlackGlossyButton}"
                        Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" HorizontalAlignment="Center"/>
        </Grid>
    </Grid>
</agc:PopupUserControl>